#pragma once

#include <stdint.h>
#include <stdbool.h>

#define VOLUME_FADE_STEP 2  // 每帧音量变化步长
/*
* Sets volume. Allowed range is  0-127
*/
void bt_app_set_volume(uint32_t level);

/*
* Changes an input data according to volume level. 
*/
void bt_app_adjust_volume(uint8_t *data, size_t size);


void bt_app_start_volume_fade(uint8_t target);

void bt_app_enable_limiter(bool enable);

void update_system_volume(uint32_t level);